package org.linlinjava.litemall.wx.web;

import org.linlinjava.litemall.core.util.ResponseUtil;
import org.linlinjava.litemall.db.domain.LitemallDeliveryNotice;
import org.linlinjava.litemall.db.service.LitemallDeliveryNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/wx/delivery/notice")
public class WxDeliveryNoticeController {
    @Autowired
    private LitemallDeliveryNoticeService deliveryNoticeService;

    /**
     * 获取配送须知列表
     *
     * @return 配送须知列表
     */
    @GetMapping("/list")
    public Object list() {
        List<LitemallDeliveryNotice> notices = deliveryNoticeService.queryList();
        return ResponseUtil.ok(notices);
    }
} 